<?php
/* Smarty version 4.5.5, created on 2025-05-12 17:06:30
  from 'E:\Develop\php\projects\app\view\admin\login\login.html' */

/* @var Smarty_Internal_Template $_smarty_tpl */
if ($_smarty_tpl->_decodeProperties($_smarty_tpl, array (
  'version' => '4.5.5',
  'unifunc' => 'content_6821ba16724457_76798890',
  'has_nocache_code' => false,
  'file_dependency' => 
  array (
    '19fd3c3864eb203404fa2acad39b13c28919b2a7' => 
    array (
      0 => 'E:\\Develop\\php\\projects\\app\\view\\admin\\login\\login.html',
      1 => 1744767961,
      2 => 'file',
    ),
  ),
  'includes' => 
  array (
  ),
),false)) {
function content_6821ba16724457_76798890 (Smarty_Internal_Template $_smarty_tpl) {
?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['title'];?>
</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon" />
	<link rel="stylesheet" href="/static/admin/css/main.css">	
</head>

<body>
<div class="dowebok container-contact100">
	<div class="toplog"><a href="/"><img src="/static/admin/images/login.png"></a></div>
	<div class="toplang">
		<select class="my-select" id="language">
			<?php
$_from = $_smarty_tpl->smarty->ext->_foreach->init($_smarty_tpl, $_smarty_tpl->tpl_vars['langs']->value, 'item', false, 'key');
$_smarty_tpl->tpl_vars['item']->do_else = true;
if ($_from !== null) foreach ($_from as $_smarty_tpl->tpl_vars['key']->value => $_smarty_tpl->tpl_vars['item']->value) {
$_smarty_tpl->tpl_vars['item']->do_else = false;
?>
            <option value='<?php echo $_smarty_tpl->tpl_vars['key']->value;?>
' <?php if ($_smarty_tpl->tpl_vars['key']->value == $_smarty_tpl->tpl_vars['default']->value) {?>selected<?php }?>><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</option>
            <?php
}
$_smarty_tpl->smarty->ext->_foreach->restore($_smarty_tpl, 1);?>
        </select>

	</div>
	<div class="wrap-contact100">
		<form class="contact100-form validate-form" method="post">
			<input id="codes" class="codes" type="hidden" name="codes">
			<span class="contact100-form-title"></span>

			<div class="wrap-input100 validate-input" data-validate="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['uservalidate'];?>
">
				<label class="label-input100" for="username"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['username'];?>
</label>
				<input id="username" class="input100 inputcheck" type="text" name="username" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['titleplace'];?>
">
				<span class="focus-input"></span>
			</div>

			<div class="wrap-input100 validate-input" data-validate="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['pwdvalidate'];?>
">
				<label class="label-input100 " for="passwd"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['password'];?>
</label>
				<input id="passwd" class="input100 inputcheck" type="password" name="passwd" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['passwdplace'];?>
">
				<span class="focus-input"></span>
			</div>
			<div class="wrap-input50 validate-input codevalue" data-validate="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['codevalidate'];?>
">
				<label class="label-input50" for="passwd"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['code'];?>
</label>
				<input id="code" class="input50 inputcheck" type="text" name="code" placeholder="<?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['codeplace'];?>
" >
				<span class="focus-input"></span>
			</div>

			<div style="float:left; margin:-85px 0 0 210px; cursor:pointer; "><img id="verImg" style="-webkit-user-select: none;margin: auto; border-radius: 5px;" src="/admin/login/doimg" onclick="changeVer()"></div>
			<div class="container-contact100-form-btn">
				<button type="button" class="contact100-form-btn"><?php echo $_smarty_tpl->tpl_vars['lang']->value['page']['login']['submit'];?>
</button>
			</div>
		</form>

		<div class="contact100-more flex-col-c-m" style="background-image: url('/static/admin/images/bg-01.jpg');">
		</div>
	</div>
	<div class="bottom"><br />Copyright © 2024 <br />support：Rising sun</div>
</div>
<?php echo '<script'; ?>
 src="/static/admin/js/jquery-1.12.4.min.js"><?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 type="text/javascript">
	$('#language').change(function(){
        $.post('/admin/login/setlanguage/',{'lang':$('#language').val()}, function(data) {
                if(data.code==200){
                    location.reload();
                }else{
                    alert(data.msg)
                }
        })
    });
    //刷新验证码
    function changeVer(){
        document.getElementById("verImg").src="/admin/login/doimg?tmp="+Math.random();
    }
    
    document.getElementById("code").onfocus = function() {getcode()};

    function getcode(){
    $.get("/admin/login/getCaptcha", function(data) {
        $('.codes').val(data);
     });	
    }
    
<?php echo '</script'; ?>
>
<?php echo '<script'; ?>
 src="/static/admin/js/main.js"><?php echo '</script'; ?>
>
</body>
</html>
<?php }
}
